package chapter04.example07;
//使用final关键字Animal类
class Animal{
}
//Dog类继承Animal类
class Dog extends Animal {
}
//定义测试类
public class Example07 {
    public static void main(String[] args) {
        Dog dog = new Dog(); //创建Dog类的实例对象
    }
}
